package com.yanqu.road.logic.bussiness.cross;

import com.yanqu.road.entity.decoration.MammonRecord;
import com.yanqu.road.entity.rank.cross.CrossUserDecoration;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class CrossMammonBussiness {
    public static void getCrossUserMammonMap(Map<Long, Map<Long, Map<Integer, CrossUserDecoration>>> allCrossUserMammonMap,
                                             Map<Integer, List<CrossUserDecoration>> crossGroupMammonMap) {
        DaoHelper.getCrossMammonDaoImpl().getCrossUserMammonMap(allCrossUserMammonMap, crossGroupMammonMap);
    }

    public static boolean addCrossUserDecoration(CrossUserDecoration crossUserDecoration) {
        return DaoHelper.getCrossMammonDaoImpl().add(crossUserDecoration);
    }

    public static boolean updateCrossUserDecoration(CrossUserDecoration crossUserDecoration) {
        return DaoHelper.getCrossMammonDaoImpl().update(crossUserDecoration);
    }

    public static void getCrossMammonRecordMap(Map<Long, Map<String, MammonRecord>> allCrossMammonRecordMap, Map<Integer, Map<String, MammonRecord>> crossGroupMammonRecordMap) {
        DaoHelper.getCrossMammonRecordDaoImpl().getCrossMammonRecordMap(allCrossMammonRecordMap, crossGroupMammonRecordMap);
    }

    public static boolean addMammonRecord(MammonRecord mammonRecord) {
        return DaoHelper.getCrossMammonRecordDaoImpl().add(mammonRecord);
    }

    public static boolean updateMammonRecord(MammonRecord mammonRecord) {
        return DaoHelper.getCrossMammonRecordDaoImpl().update(mammonRecord);
    }
}
